package com.medical.server.drug.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.drug.dao.DruginfoDao;
import com.medical.server.drug.entity.DruginfoEntity;
import com.medical.server.drug.service.DruginfoService;


@Service("druginfoService")
public class DruginfoServiceImpl extends ServiceImpl<DruginfoDao, DruginfoEntity> implements DruginfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DruginfoEntity> page = this.page(
                new Query<DruginfoEntity>().getPage(params),
                new QueryWrapper<DruginfoEntity>()
        );

        return new PageUtils(page);
    }

}